package com.mall.config

import org.springframework.boot.SpringApplication
import org.springframework.boot.env.EnvironmentPostProcessor
import org.springframework.core.env.ConfigurableEnvironment
import me.paulschwarz.springdotenv.DotenvPropertySource

class DotenvProcessor : EnvironmentPostProcessor {
    override fun postProcessEnvironment(environment: ConfigurableEnvironment, application: SpringApplication) {
        DotenvPropertySource.addToEnvironment(environment)
    }
}